package com.jilefojing.dao;

import java.util.List;

import com.jilefojing.beans.pojos.Dictionary;
import com.jilefojing.dao.base.IBaseDao;

/**
 * 
 * @author jgshun
 * 
 */
public interface IDictionaryDao extends IBaseDao<Dictionary> {

	List<Dictionary> getListByNodeName(String nodeName);

	List<Dictionary> getListByNodeNamePefix(String nodeNamePefix);

	List<Dictionary> getListByIds(List<Long> ids);

	List<Dictionary> getListByParentId(Long parentId);

	List<Dictionary> getListByParentIds(List<Long> parentIds);

	/**
	 * 判断是否为最低层的叶子节点
	 * 
	 * @param id
	 * @return
	 */
	boolean IsLeafNode(long id);

	List<Dictionary> getListByParentIdAndNodeValues(Long parentId, List<String> nodeValues);

	List<Dictionary> getListByParentIdsAndNodeValues(List<Long> parentIds, List<String> nodeValues);

}
